package com.yuanfeng.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.payment.entity.PayCardInfoEntity;
import io.seata.core.exception.TransactionException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 *
 */
public interface PayCardInfoService extends IService<PayCardInfoEntity> {

    /**
     * 充值卡充值
     *
     * @param map
     * @return
     */
    ResponseResult rechargeCard(Map<Object, Object> map) throws TransactionException;

    /**
     * @param paraMap
     * @param response
     * @return 已完成导出办卡 @throws IOException
     */

    ResponseResult execl(Map<String, Object> paraMap, HttpServletResponse response) throws IOException;
}
